gtk4.git
11 years agogdk: Deprecate compositing support
Benjamin Otte [Sun, 12 Oct 2014 02:50:40 +0000 (04:50 +0200)]
gdk: Deprecate compositing support

We might want to remove support for it completely and always return
FALSE.

11 years agogtkplacessidebar: Fix commit f6870e5b79fd9ab
Carlos Soriano [Sun, 12 Oct 2014 01:55:39 +0000 (03:55 +0200)]
gtkplacessidebar: Fix commit f6870e5b79fd9ab

Commit f6870e5b79fd9ab introduced a some memory leaks and could be
improved in some areas.

Fix the memory leaks and apply the improvements.

https://bugzilla.gnome.org/show_bug.cgi?id=737983

11 years agoconfigure: Require glib 2.43
Benjamin Otte [Sat, 11 Oct 2014 23:40:41 +0000 (01:40 +0200)]
configure: Require glib 2.43

11 years agocolorswatch: Remove unneeded save/restore
Benjamin Otte [Sat, 11 Oct 2014 01:32:28 +0000 (03:32 +0200)]
colorswatch: Remove unneeded save/restore

for both style context and cairo context.

11 years agomenu: Respect borders properly for scroll arrows
Benjamin Otte [Sat, 11 Oct 2014 00:40:48 +0000 (02:40 +0200)]
menu: Respect borders properly for scroll arrows

11 years agoUpdated Hebrew translation
Yosef Or Boczko [Sat, 11 Oct 2014 22:11:36 +0000 (01:11 +0300)]
Updated Hebrew translation

11 years agoUpdated POTFILES.in
Yosef Or Boczko [Sat, 11 Oct 2014 22:11:26 +0000 (01:11 +0300)]
Updated POTFILES.in

11 years agoinspector: Some improvements for statistics
Matthias Clasen [Sat, 11 Oct 2014 21:58:31 +0000 (17:58 -0400)]
inspector: Some improvements for statistics

Show the last two snapshots, plus a delta.

11 years agoinspector: Add a tab for object counts
Matthias Clasen [Fri, 10 Oct 2014 03:34:59 +0000 (23:34 -0400)]
inspector: Add a tab for object counts

This can be useful in finding leaks.

https://bugzilla.gnome.org/show_bug.cgi?id=738272

11 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Sat, 11 Oct 2014 15:57:42 +0000 (17:57 +0200)]
Updated POTFILES.in and POTFILES.skip

11 years agoAdwaita: fix the special cased sidebar scrollbar...
Lapo Calamandrei [Sat, 11 Oct 2014 12:37:16 +0000 (14:37 +0200)]
Adwaita: fix the special cased sidebar scrollbar...

...which I broke with the latest commit.

11 years agoAdwaita: finally kill the scrollbar junction frame...
Lapo Calamandrei [Sat, 11 Oct 2014 12:31:08 +0000 (14:31 +0200)]
Adwaita: finally kill the scrollbar junction frame...

See https://bugzilla.gnome.org/show_bug.cgi?id=737981

11 years agoGtkToolButton: Apply expected button style classes
Matthias Clasen [Sat, 11 Oct 2014 12:28:55 +0000 (08:28 -0400)]
GtkToolButton: Apply expected button style classes

Add .image-button or .text-button to the button within,
so our css works as expected for toolbar buttons too.

11 years agoinspector: Cosmetics
Matthias Clasen [Sat, 11 Oct 2014 12:15:07 +0000 (08:15 -0400)]
inspector: Cosmetics

Add .image-button to the tool buttons in the CSS editor - still
not square.

11 years agoinspector: Remove a stray separator
Matthias Clasen [Sat, 11 Oct 2014 12:07:04 +0000 (08:07 -0400)]
inspector: Remove a stray separator

11 years agoinspector: Make the window smaller
Matthias Clasen [Sat, 11 Oct 2014 12:01:57 +0000 (08:01 -0400)]
inspector: Make the window smaller

No need for 1000 pixels of with anymore, after the reorg.

11 years agoinspector: Make resource list columns resizable
Matthias Clasen [Sat, 11 Oct 2014 11:55:25 +0000 (07:55 -0400)]
inspector: Make resource list columns resizable

This tree has the potential to be deep, and contain long
names, so it forces the window to be wide, unless we
allow the columns to shrink.

11 years agoinspector: Small improvements to the resource tab
Matthias Clasen [Sat, 11 Oct 2014 04:58:47 +0000 (00:58 -0400)]
inspector: Small improvements to the resource tab

Move the close button to the header bar and center the info grid.

11 years agoinspector: Cosmetic fixes
Matthias Clasen [Sat, 11 Oct 2014 04:23:21 +0000 (00:23 -0400)]
inspector: Cosmetic fixes

Set scrollbars and shadows consistently.

11 years agoinspector: Cosmetic fixes
Matthias Clasen [Sat, 11 Oct 2014 03:25:29 +0000 (23:25 -0400)]
inspector: Cosmetic fixes

Add a missing shadow in the css editor.

11 years agoinspector: Cosmetic fixes
Matthias Clasen [Sat, 11 Oct 2014 03:25:07 +0000 (23:25 -0400)]
inspector: Cosmetic fixes

Expand the resource list initially.

11 years agoinspector: Avoid a split pane for objects
Matthias Clasen [Sat, 11 Oct 2014 02:34:32 +0000 (22:34 -0400)]
inspector: Avoid a split pane for objects

Like for the resources page, use a separate page for details
to gain more room for both the tree and the details.

11 years agoinspector: More refactoring
Matthias Clasen [Sat, 11 Oct 2014 01:40:53 +0000 (21:40 -0400)]
inspector: More refactoring

Rename widget tree to object tree. It contains plenty of
non-widgets nowadays, after all.

11 years agoinspector: More refactoring
Matthias Clasen [Sat, 11 Oct 2014 01:13:34 +0000 (21:13 -0400)]
inspector: More refactoring

Get rid of gtk_inspector_widget_tree_get_selected_object,
we can just pass the selected object along with the changed
signal.

11 years agoinspector: Small reshuffling
Matthias Clasen [Sat, 11 Oct 2014 00:51:54 +0000 (20:51 -0400)]
inspector: Small reshuffling

Move the scrolled window into GtkInspectorWidgetTree.

11 years agoinspector: Drop unused python shell code
Matthias Clasen [Sat, 11 Oct 2014 00:33:08 +0000 (20:33 -0400)]
inspector: Drop unused python shell code

This is getting in the way; if somebody comes by who wants
to add scripting support back, we can resurrect this.

11 years agoinspector: Avoid a split pane for resources
Matthias Clasen [Sat, 11 Oct 2014 00:20:02 +0000 (20:20 -0400)]
inspector: Avoid a split pane for resources

There is not much room in the inspector window; squeezing a
tree and a detailed view in the same page is not great. Instead,
make the details a separate page.

11 years agoinspector: Add more data to resource list
Matthias Clasen [Fri, 10 Oct 2014 23:15:02 +0000 (19:15 -0400)]
inspector: Add more data to resource list

11 years agoinspector: Fix up resource tab appearance
Matthias Clasen [Fri, 10 Oct 2014 20:15:01 +0000 (16:15 -0400)]
inspector: Fix up resource tab appearance

Now that it is not in a notebook anymore, we lost the view
class in the background. Add it back.

11 years agoinspector: Save some more space
Matthias Clasen [Fri, 10 Oct 2014 20:06:37 +0000 (16:06 -0400)]
inspector: Save some more space

Instead of nesting two notebooks, use a stack switcher in
the headerbar for the outer notebook. This saves valuable
vertical space.

11 years agoinspector: Drop the button path
Matthias Clasen [Fri, 10 Oct 2014 19:52:48 +0000 (15:52 -0400)]
inspector: Drop the button path

The button path takes up quite a bit of room, and is not _that_
useful. If this information is useful, it can find a new home
on the misc tab.

11 years agoUpdates Persian Translations
Arash Mousavi [Fri, 10 Oct 2014 21:25:22 +0000 (00:55 +0330)]
Updates Persian Translations

11 years agowayland: write wl_data_offer data asynchronously
Carlos Garnacho [Fri, 10 Oct 2014 18:38:46 +0000 (20:38 +0200)]
wayland: write wl_data_offer data asynchronously

Currently writing wl_data_offer data into the fd is 1) synchronous, which
is noticeable when transferring large amounts of data, and 2) buggy, write()
error checking is done on the accumulator, breaking both the written data
accounting and error checking itself.

Fix both by making writes asynchonous through GOutputStream, the operation
is spun off and either finished, or cancelled if new data is stored in the
selection while the transfer is active.

11 years agogtkplacessidebar: Open $HOME after unmounting or ejecting
Carlos Soriano [Tue, 7 Oct 2014 10:22:38 +0000 (12:22 +0200)]
gtkplacessidebar: Open $HOME after unmounting or ejecting

When a drive is ejected or a volume unmounted the current directory
doesn't change most of the times being empty or being a directory that
user shouldn't take care about, like /run/media

Seems more useful to change to $HOME directory in that case so the user
can see something useful and familiar just after unmounting.

https://bugzilla.gnome.org/show_bug.cgi?id=737983

11 years agogtkplacessidebar: Don't change location if clicked on eject button
Carlos Soriano [Thu, 9 Oct 2014 18:31:42 +0000 (20:31 +0200)]
gtkplacessidebar: Don't change location if clicked on eject button

Currently we change the current location if we click the eject button of
a mount.

Check whether the user actually clicked the eject button and don't
change location in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=737983

11 years agoAdwaita: dim menu overflow button border color
Lapo Calamandrei [Fri, 10 Oct 2014 12:01:38 +0000 (14:01 +0200)]
Adwaita: dim menu overflow button border color

11 years agoAdwaita: style menu overflow button
Lapo Calamandrei [Fri, 10 Oct 2014 11:53:42 +0000 (13:53 +0200)]
Adwaita: style menu overflow button

See bug https://bugzilla.gnome.org/show_bug.cgi?id=738158

11 years agoUpdated Italian translation
Milo Casagrande [Fri, 10 Oct 2014 11:51:06 +0000 (11:51 +0000)]
Updated Italian translation

11 years agoAdd top/bottom style classes to scroll arrows
Matthias Clasen [Fri, 10 Oct 2014 11:43:36 +0000 (07:43 -0400)]
Add top/bottom style classes to scroll arrows

11 years agoGet paper sizes from IPP query
Marek Kasik [Thu, 2 Oct 2014 11:50:47 +0000 (13:50 +0200)]
Get paper sizes from IPP query

Query printer via IPP for paper sizes if there is no
or empty PPD file.
Parse "media-supported" and "media-size-supported" attributes for list
of paper sizes. Parse "media-default" and "media-col-default" attributes
for default settings.

https://bugzilla.gnome.org/show_bug.cgi?id=725441

11 years agoRemove dead code from CUPS backend
Marek Kasik [Wed, 1 Oct 2014 13:17:39 +0000 (15:17 +0200)]
Remove dead code from CUPS backend

https://bugzilla.gnome.org/show_bug.cgi?id=725441

11 years agoCreate paper size from IPP media name
Marek Kasik [Mon, 6 Oct 2014 10:37:56 +0000 (12:37 +0200)]
Create paper size from IPP media name

Add function gtk_paper_size_new_from_ipp() which looks for
given name in standard paper size names list and create appropriate
GtkPaperSize.

https://bugzilla.gnome.org/show_bug.cgi?id=725441

11 years agoUpdate paper size names
Marek Kasik [Thu, 2 Oct 2014 13:41:45 +0000 (15:41 +0200)]
Update paper size names

Update list of standardized paper size names from
PWG Media Standardized Names 2.0 (MSN2) and from
CUPS' cups/pwg-media.c.

https://bugzilla.gnome.org/show_bug.cgi?id=725441

11 years agoinspector: Add a way to disable the warning dialog
Matthias Clasen [Fri, 10 Oct 2014 03:00:22 +0000 (23:00 -0400)]
inspector: Add a way to disable the warning dialog

11 years agoGtkScrolledWindow: Introduce a helper function
Matthias Clasen [Wed, 8 Oct 2014 02:59:07 +0000 (22:59 -0400)]
GtkScrolledWindow: Introduce a helper function

Instead of making assumptions about enum value ordering,
introduce a helper function to determine policy values
for which the scrollbar may be visible.

11 years agoAdd an example for synchronized scrolling
Matthias Clasen [Fri, 10 Oct 2014 00:17:10 +0000 (20:17 -0400)]
Add an example for synchronized scrolling

This example uses GTK_POLICY_EXTERNAL to share a scrollbar among
multiple scrolled windows.

11 years agoGtkScrolledWindow: Allow scrolling without bars
Matthias Clasen [Sun, 5 Oct 2014 03:15:04 +0000 (23:15 -0400)]
GtkScrolledWindow: Allow scrolling without bars

Add a new policy, GTK_POLICY_EXTERNAL, which hides the scrollbar,
but does not force the scrolled windows size to be determined by
its child. This can be used to keep two scrolled windows in sync,
while sharing a single scrollbar.

https://bugzilla.gnome.org/show_bug.cgi?id=730730

11 years agoshadows: Respect scaled factors for cached surface
Benjamin Otte [Thu, 9 Oct 2014 23:02:34 +0000 (01:02 +0200)]
shadows: Respect scaled factors for cached surface

11 years agorender: Optimize the no-borders case to exit early
Benjamin Otte [Thu, 9 Oct 2014 22:09:03 +0000 (00:09 +0200)]
render: Optimize the no-borders case to exit early

11 years agotests: Exit test when main window is closed
Benjamin Otte [Thu, 9 Oct 2014 22:08:02 +0000 (00:08 +0200)]
tests: Exit test when main window is closed

11 years agoAdd a note about text view issues
Matthias Clasen [Thu, 9 Oct 2014 22:11:18 +0000 (18:11 -0400)]
Add a note about text view issues

Mention text view background problems and the draw_layer
vfunc in the release notes.

11 years agoGtkMenuButton: Submit to action
Matthias Clasen [Thu, 9 Oct 2014 19:30:52 +0000 (15:30 -0400)]
GtkMenuButton: Submit to action

As an actionable (inherited from GtkButton), a GtkMenuButton
should not set its own sensitivity when it has an action-name
set, but just follow the enabled state of the associated
action.

https://bugzilla.gnome.org/show_bug.cgi?id=738083

11 years agoRemove an unused internal export
Matthias Clasen [Thu, 9 Oct 2014 04:22:13 +0000 (00:22 -0400)]
Remove an unused internal export

_gtk_scrolled_window_get_scrollbar_spacing is only used in
gtkscrolledwindow.c, so keep it there.

11 years agoColorChooser: Fix an off-by-one error
Matthias Clasen [Thu, 9 Oct 2014 04:12:46 +0000 (00:12 -0400)]
ColorChooser: Fix an off-by-one error

We were not filling the last free space in the custom color
row.

11 years agoAdwaita: color button changes
Lapo Calamandrei [Wed, 8 Oct 2014 15:47:15 +0000 (17:47 +0200)]
Adwaita: color button changes

Dimmed inner colorswatch shadow to make brighter colors looks nice,
increased the padding to make button states more evident, 0 border
radius to match the padding change and no colorswatch shadows when
the button is insensitive.

11 years agoDistribute gtk/resources/ui/*.ui.h
Lars Uebernickel [Wed, 8 Oct 2014 15:24:30 +0000 (17:24 +0200)]
Distribute gtk/resources/ui/*.ui.h

POTFILES references them.

11 years agoAdwaita: colorchooser style rewrite
Lapo Calamandrei [Wed, 8 Oct 2014 15:23:45 +0000 (17:23 +0200)]
Adwaita: colorchooser style rewrite

To reflect latest Benjamin changes. As a bonus the colorchooser
looks better to me, same for the scss code.

11 years agoAdwaita: don't round scrolled window frame corners
Lapo Calamandrei [Wed, 8 Oct 2014 12:08:04 +0000 (14:08 +0200)]
Adwaita: don't round scrolled window frame corners

See https://bugzilla.gnome.org/show_bug.cgi?id=737985

11 years agocolorswatch: Use a better name for the overlay
Benjamin Otte [Wed, 8 Oct 2014 11:18:35 +0000 (13:18 +0200)]
colorswatch: Use a better name for the overlay

Name it .overlay and not .image

11 years agocolorswatch: Draw the image overlay over the whole widget
Benjamin Otte [Wed, 8 Oct 2014 11:17:55 +0000 (13:17 +0200)]
colorswatch: Draw the image overlay over the whole widget

11 years agothemingbackground: Use fill() instead of clip() + paint()
Benjamin Otte [Wed, 8 Oct 2014 03:23:11 +0000 (05:23 +0200)]
themingbackground: Use fill() instead of clip() + paint()

It's simpler code and I believe it's faster, too.

11 years agothemingbackground: Add a quick exit for default case
Benjamin Otte [Wed, 8 Oct 2014 03:19:07 +0000 (05:19 +0200)]
themingbackground: Add a quick exit for default case

In the case where the background is completely transparent, exit the
rendering functions before doing any expensive calculations.

11 years agothemingbackground: Call shadow function directly
Benjamin Otte [Wed, 8 Oct 2014 03:10:42 +0000 (05:10 +0200)]
themingbackground: Call shadow function directly

... instead of having a custom function for it.

11 years agothemingbackground: Don't store (almost) unused variables
Benjamin Otte [Wed, 8 Oct 2014 03:06:32 +0000 (05:06 +0200)]
themingbackground: Don't store (almost) unused variables

Instead, parse them directly to the one function that uses them.

11 years agothemingbackground: Don't store bg_color in struct
Benjamin Otte [Wed, 8 Oct 2014 03:03:35 +0000 (05:03 +0200)]
themingbackground: Don't store bg_color in struct

Instead, keep it as a separate variable.

11 years agothemingbackground: Use an array instead of 3 separate members
Benjamin Otte [Wed, 8 Oct 2014 02:59:58 +0000 (04:59 +0200)]
themingbackground: Use an array instead of 3 separate members

Simplifies code

11 years agorender: Make rendering the background a single function
Benjamin Otte [Wed, 8 Oct 2014 01:26:01 +0000 (03:26 +0200)]
render: Make rendering the background a single function

11 years agorender: Overhaul gtk_render_handle()
Benjamin Otte [Tue, 7 Oct 2014 21:50:33 +0000 (23:50 +0200)]
render: Overhaul gtk_render_handle()

The code did weird things with drawing backgrounds sometimes but not
really. Now it does this:

(1) render a background
(2) render a frame
(3) render an icon
    - if no icon exists, draw the generic handle icon

11 years agocolorswatch: Render background properly
Benjamin Otte [Tue, 7 Oct 2014 21:24:51 +0000 (23:24 +0200)]
colorswatch: Render background properly

We want to render a background *and* the current color (if there is
one).

This also adds a custom function gtk_render_add_content_path() which
adds the path of the current content area to a cairo_t.

11 years agocolorswatch: Remove an unused variable
Benjamin Otte [Tue, 7 Oct 2014 15:01:31 +0000 (17:01 +0200)]
colorswatch: Remove an unused variable

11 years agocolorswatch: Render focus with gtk_render_focus()
Benjamin Otte [Tue, 7 Oct 2014 14:52:42 +0000 (16:52 +0200)]
colorswatch: Render focus with gtk_render_focus()

11 years agocolorswatch: Simplify drawing code
Benjamin Otte [Tue, 7 Oct 2014 03:58:09 +0000 (05:58 +0200)]
colorswatch: Simplify drawing code

This adds a CSS box (complete with padding and border) for the icon. The
box is even drawn when no icon is present. Use the ".image" as the style
class here instead of -active-color-badge.

Use this box to draw the circle around the selection icon in Adwaita.

11 years agoMore removal of deprecated API
Matthias Clasen [Wed, 8 Oct 2014 02:04:26 +0000 (22:04 -0400)]
More removal of deprecated API

11 years agoprinting: Properly initialize auth_info in gtkprintbackend.c
Dariusz Gadomski [Thu, 2 Oct 2014 12:10:39 +0000 (14:10 +0200)]
printing: Properly initialize auth_info in gtkprintbackend.c

auth_info should be a NULL-terminated array as it is used in
e.g. g_strdupv invocations iterating over its elements until
a NULL element is encountered.

https://bugzilla.gnome.org/show_bug.cgi?id=737777

11 years agoMake touch-selection popovers font-inert
Matthias Clasen [Tue, 7 Oct 2014 17:28:54 +0000 (13:28 -0400)]
Make touch-selection popovers font-inert

Just like context menus, these should not inherit font
settings from the text view they are attached to.

11 years agoAdd a style class for touch selection popovers
Matthias Clasen [Tue, 7 Oct 2014 17:25:53 +0000 (13:25 -0400)]
Add a style class for touch selection popovers

11 years agoAdwaita: change spinbutton button color on backdrop
Lapo Calamandrei [Tue, 7 Oct 2014 10:22:38 +0000 (12:22 +0200)]
Adwaita: change spinbutton button color on backdrop

Contextually dim the spinbutton button color a little bit.

11 years agogtk3-demo: Don't use deprecated API
Matthias Clasen [Tue, 7 Oct 2014 04:45:59 +0000 (00:45 -0400)]
gtk3-demo: Don't use deprecated API

Replace various override calls.

11 years agoInspector: Use text attributes for monospace labels
Matthias Clasen [Tue, 7 Oct 2014 04:42:46 +0000 (00:42 -0400)]
Inspector: Use text attributes for monospace labels

11 years agoInspector: Use the new monospace support
Matthias Clasen [Tue, 7 Oct 2014 04:42:21 +0000 (00:42 -0400)]
Inspector: Use the new monospace support

11 years agoAdwaita: Add .monospace style
Matthias Clasen [Tue, 7 Oct 2014 04:40:55 +0000 (00:40 -0400)]
Adwaita: Add .monospace style

11 years agoGtkTextView: Add a monospace property
Matthias Clasen [Tue, 7 Oct 2014 04:39:42 +0000 (00:39 -0400)]
GtkTextView: Add a monospace property

This is a convenient shortcut for a common case. It is implemented
by adding a .monospace style class to the text view, and letting
the theme decide about the monospace font to use.

11 years agoGtkSidebar: Pick up the visible child from the stack
Matthias Clasen [Tue, 7 Oct 2014 03:06:54 +0000 (23:06 -0400)]
GtkSidebar: Pick up the visible child from the stack

Same here: We need to synchronize the visible child with the
selected row when setting a stack on the sidebar. I've noticed
this problem in the sidebar example in gtk3-widget-factory.

11 years agoGtkStackSwitcher: Pick up the visible child from the stack
Matthias Clasen [Tue, 7 Oct 2014 03:06:09 +0000 (23:06 -0400)]
GtkStackSwitcher: Pick up the visible child from the stack

We forgot to synchronize the visible child when setting a
stack on the switcher. Oops.

11 years agoAdd GtkTextViewClass to the docs
Matthias Clasen [Tue, 7 Oct 2014 02:33:19 +0000 (22:33 -0400)]
Add GtkTextViewClass to the docs

So that the existing information about draw_layer actually
ends up in the docs. While we are at it, document the other
vfuncs.

https://bugzilla.gnome.org/show_bug.cgi?id=737952

11 years agotooltip: fix line wrapping
Michael Catanzaro [Sun, 5 Oct 2014 14:07:58 +0000 (09:07 -0500)]
tooltip: fix line wrapping

We enable line wrap on the internal GtkLabel, but nowadays this does
nothing unless we also set a max number of characters.

https://bugzilla.gnome.org/show_bug.cgi?id=737929

11 years agoFix monitors enumeration bug
Vasiliy Nuzha [Mon, 6 Oct 2014 22:29:20 +0000 (02:29 +0400)]
Fix monitors enumeration bug

Fix monitors enumeration bug. By default used MONITORINFOEXW (UTF-16 Build) with wrong structure size

11 years agogdkwindow: Fix small typo
Jasper St. Pierre [Mon, 6 Oct 2014 20:36:52 +0000 (13:36 -0700)]
gdkwindow: Fix small typo

11 years agogdk: Fix gdk_cairo_create() without begin_paint()
Benjamin Otte [Mon, 6 Oct 2014 20:18:20 +0000 (22:18 +0200)]
gdk: Fix gdk_cairo_create() without begin_paint()

We were translating the clip region twice in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=737825

11 years agoUpdated Korean translation
Changwoo Ryu [Mon, 6 Oct 2014 16:35:12 +0000 (01:35 +0900)]
Updated Korean translation

11 years agogdk: Allow calling gdk_cairo_surface_create_from_pixbuf with scale 0
Kalev Lember [Mon, 6 Oct 2014 12:19:21 +0000 (14:19 +0200)]
gdk: Allow calling gdk_cairo_surface_create_from_pixbuf with scale 0

The documentation explicitly states that 0 is an allowed value for using
the same scale as the window. This 0 value is also explicitly checked
down in the call chain and handled.

11 years agogdk: Deprecate static gravities
Benjamin Otte [Mon, 6 Oct 2014 00:38:40 +0000 (02:38 +0200)]
gdk: Deprecate static gravities

... and remove all implementations. The API allows to not work "if the
server doesn't support it. So from now on, no server does!

11 years agocssshadowvalue: Add a cache for blurred Pango layouts
Jasper St. Pierre [Fri, 29 Aug 2014 20:51:30 +0000 (13:51 -0700)]
cssshadowvalue: Add a cache for blurred Pango layouts

Drawing text with Pango is quite expensive, and drawing text and also
blurring it is *really* expensive. To prevent us from drawing a lot of
text and then blurring it a lot is *really* expensive.

We now cache the blurred pixels for the last layout and shadow we made,
which means we can repeatedly draw labels with a blurred text-shadow
extremely fast.

To detect whether the shadow is up-to-date, we track the serial of the
PangoLayout alongside the radius of the box shadow. We don't support
inset shadows nor spread on text-shadow, so we don't need to track
these.

11 years agoGdkDevice: Avoid unnecessary critical
Matthias Clasen [Sun, 5 Oct 2014 22:21:46 +0000 (18:21 -0400)]
GdkDevice: Avoid unnecessary critical

There is no need for a critical warning just because somebody
asked for a property that is not meaningful for the device.
Just document it as not useful for keyboard devices.

11 years agoCosmetic formatting fix
Matthias Clasen [Sun, 5 Oct 2014 17:39:15 +0000 (13:39 -0400)]
Cosmetic formatting fix

11 years agoGtkPlacesSidebar: Don't pile up duplicate bookmarks
Matthias Clasen [Sun, 5 Oct 2014 17:34:28 +0000 (13:34 -0400)]
GtkPlacesSidebar: Don't pile up duplicate bookmarks

We get multiple notifications from the bookmark manager when
something changes. Every time, we reconstruct the sidebar contents
completely, by clearing the store. The bookmarks are added with
async calls though, and the code was forgetting to cancel outstanding
async requests, leading to multiple instances of the same bookmark
getting added. Use the cancellable we already have to prevent that.

This could be made much more efficient by not recreating the entire
sidebar quite so often (3-5 times for a single bookmark rename).

https://bugzilla.gnome.org/show_bug.cgi?id=737679

11 years agoUpdated German translation
Wolfgang Stöggl [Sun, 5 Oct 2014 14:25:27 +0000 (14:25 +0000)]
Updated German translation

11 years agoAdwaita: fix last vertically linked focused entry
Lapo Calamandrei [Sun, 5 Oct 2014 10:27:55 +0000 (12:27 +0200)]
Adwaita: fix last vertically linked focused entry

11 years agox11: Remove overeager check
Benjamin Otte [Sun, 5 Oct 2014 09:24:09 +0000 (11:24 +0200)]
x11: Remove overeager check

window->parent must exist, it's dereferenced a few lines below.

Avoids clang complaints.

11 years agogdk: Remove overeager checks
Benjamin Otte [Sun, 5 Oct 2014 09:18:15 +0000 (11:18 +0200)]
gdk: Remove overeager checks

Parent is guaranteed to not be NULL. It can only ever be NULL for root
windows and root windows cannot be created with gdk_window_new() and
gdk_window_ensure_native() will exit early because they already are
native.

Also, both functions would crash a few lines below where parent gets
dereferenced.